package org.iati.mobile;

import java.util.List;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

/**
 * @author Ionut Dobre
 * @date April 9, 2012
 */

/**
 * IATI Project (Activity) details
 */

@Root(name="iati-activity", strict=false)
public class IATIProject {
	@Element(name="iati-identifier", required=false)
	private String iatiIdentifier;

	@Element(name="title", required=false)
	private String title;

	@Element(name="description", required=false)
	private String description;

	@Element(name="recipient-country", required=false)
	private RecipientCountry recipientCountry;

	@ElementList(name="transaction", required=false, inline=true)
	private List<Transaction> transactions;
	
	@ElementList(name="sector", required=false, inline=true)
	private List<Sector> sectors;

	/**
	 * @return the iatiIdentifier
	 */
	public String getIatiIdentifier() {
		return iatiIdentifier;
	}

	/**
	 * @param iatiIdentifier the iatiIdentifier to set
	 */
	public void setIatiIdentifier(String iatiIdentifier) {
		this.iatiIdentifier = iatiIdentifier;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the recipientCountry
	 */
	public RecipientCountry getRecipientCountry() {
		return recipientCountry;
	}

	/**
	 * @param recipientCountry the recipientCountry to set
	 */
	public void setRecipientCountry(RecipientCountry recipientCountry) {
		this.recipientCountry = recipientCountry;
	}

	/**
	 * @return the transactions
	 */
	public List<Transaction> getTransactions() {
		return transactions;
	}

	/**
	 * @param transactions the transactions to set
	 */
	public void setTransactions(List<Transaction> transactions) {
		this.transactions = transactions;
	}

	/**
	 * @return the sectors
	 */
	public List<Sector> getSectors() {
		return sectors;
	}

	/**
	 * @param sectors the sectors to set
	 */
	public void setSectors(List<Sector> sectors) {
		this.sectors = sectors;
	}
}
